import { ResponseData } from "@/api/public";
import { SkuData } from "../spu/type";

// sku商品数据
export interface Sku extends SkuData{
    isSale?: number,
    id?: number,
    skuImgList?: {
        imgName: string,
        imgUrl: string,
        spuImgId: number,
        isDefault: string
    }[]
}

// 获取商品列表接口
export interface ResSkuList extends ResponseData{
    data:{
        records: SkuData[],
        total: number,
        size: number,
        current: number,
        orders: [],
        optimizeCountSql: boolean,
        hitCount: boolean,
        countId: null,
        maxLimit: null,
        searchCount: boolean,
        pages: number,
    }
}

// 获取详细商品信息接口
export interface ResSkuInfo extends ResponseData{
    data: Sku
}